<html>
  <style type="text/css">
.source {
	font-size: 12px;
	border: thin solid #000000;
	width: 100%;
}
	
.ln {
	background-color: #CCCCCC;
	text-align: right;
	padding-left: 3px;
	padding-right: 3px;
	width: 50;
	border-right: thin solid #000000;
	}

.head {
	background-color: #CCCCCC;
	padding-left: 3px;
	padding-right: 3px;
	width: 50;
	font-weight:bold;
	border-right: thin solid #000000;
	border-bottom: thin solid #000000
}
	
.code {
	padding-right: 3px;	
	padding-left: 3px;	
	border-right: thin solid #000000;
}
	
.score, .summary, .metric {
	padding-right: 3px;	
	padding-left: 3px;	
	width: 100;
	border-right: thin solid #000000;
}
	
.summary {
	font-weight:bold;
	font-style:italic;
}

.metric {
	font-weight:bold;
}
  </style>
  <title>Testability Explorer Report for class: com.google.test.metric.report.Histogram</title>
<body>
<center><h1>Testability Report</h1></center><h2>Class: <tt>com.google.test.metric.report.Histogram</tt></h2>
<table class="source" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head" width="100">Metric:</td>
    <td class="head" width="100">Value:</td>
    <td class="head" colspan="2" width="100%">Chart:</td>
  </tr>
  <tr>
    <td class="metric">Class cost:</td>
    <td class="score" style='background-color:#00FF00'>1</td>
    <td rowspan="2" align="center" class="score" style="border-right:none"><img src='http://chart.apis.google.com/chart?chco=00FF00,FFFF00,FF0000,550000&chd=t:0&chs=150x50&cht=gom' width='150' height='50'/></td>
    <td class="score" rowspan="7"><img src='http://chart.apis.google.com/chart?chbh=17,0,0&chco=00AA00,FFFF00,D22222&chd=s:9ffAAAAAAAAAAAAAAAAAA,AAAAAAAAAAAAAAAAAAAAA,AAAAAAAAAAAAAAAAAAAAA&chdl=Excellent|Good|Needs+Work&chl=0||2||4||6||8||10||12||14||16||18||20&chs=500x100&cht=bvs&chxl=0:|0|4&chxt=y' width='500' height='100'/></td>
  </tr>
  <tr>
    <td class="score">&nbsp;</td>
    <td class="score">&nbsp;</td>
  </tr>
  <tr>
    <td class="metric">Method(s) count:</td>
    <td class="score">8</td>
    <td rowspan="5" align="center" class="score" style="border-right:none"><img src='http://chart.apis.google.com/chart?chco=00AA00,FFFF00,D22222&chd=t:100,0,0&chl=Excellent|Good|Needs+Work&chs=280x50&cht=p3' width='280' height='50'/></td>
  </tr>
  <tr>
    <td class="metric">&nbsp;&nbsp;&nbsp;Excellent:</td>
    <td class="score" style="background-color:#00FF00">8 [100%]</td>
  </tr>
  <tr>
    <td class="metric">&nbsp;&nbsp;&nbsp;Good:</td>
    <td class="score" style="background-color:#FFFF00">0 [100%]</td>
  </tr>
  <tr>
    <td class="metric">&nbsp;&nbsp;&nbsp;Needs work:</td>
    <td class="score" style="background-color:#FF0000">0 [100%]</td>
  </tr>
  <tr>
    <td class="score">&nbsp;</td>
    <td class="score">&nbsp;</td>
  </tr>
</table>
<br>
<table class="source" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head">Method</td>
    <td class="head">Total Cost</td>
    <td class="head">Direct Cost</td>
  </tr>
  <tr>
    <td class="score" style='background-color:#00FF00'><a href="#29"><tt>com.google.test.metric.report.Histogram(int, int, int)</tt></a></td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
  </tr>
  <tr>
    <td class="score" style='background-color:#00FF00'><a href="#47"><tt>int[] getBins()</tt></a></td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
  </tr>
  <tr>
    <td class="score" style='background-color:#00FF00'><a href="#51"><tt>int getMaxBin()</tt></a></td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
  </tr>
  <tr>
    <td class="score" style='background-color:#00FF00'><a href="#55"><tt>void setMaxBin(int)</tt></a></td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
  </tr>
  <tr>
    <td class="score" style='background-color:#00FF00'><a href="#40"><tt>int bin(int)</tt></a></td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 1 [CC: 1]&nbsp;</td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 1 [CC: 1]&nbsp;</td>
  </tr>
  <tr>
    <td class="score" style='background-color:#00FF00'><a href="#36"><tt>void value(int)</tt></a></td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 1 [CC: 1]&nbsp;</td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
  </tr>
  <tr>
    <td class="score" style='background-color:#00FF00'><a href="#69"><tt>java.lang.String[] getBinLabels(int)</tt></a></td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 2 [CC: 2]&nbsp;</td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 2 [CC: 2]&nbsp;</td>
  </tr>
  <tr>
    <td class="score" style='background-color:#00FF00'><a href="#59"><tt>int[] getScaledBinRange(int, int, int)</tt></a></td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 2 [CC: 2]&nbsp;</td>
    <td nowrap class="score" style='background-color:#00FF00'>Cost: 1 [CC: 1]&nbsp;</td>
  </tr>
</table>
<br>
<table class="source" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head">Line&nbsp;No:</td>
    <td class="head">Cost</td>
    <td class="head">Source Code</td>
  </tr>
    <tr>
      <td class="ln"><a name="1"/>1</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>/*</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="2"/>2</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;Copyright&nbsp;2007&nbsp;Google&nbsp;Inc.</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="3"/>3</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="4"/>4</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;Licensed&nbsp;under&nbsp;the&nbsp;Apache&nbsp;License,&nbsp;Version&nbsp;2.0&nbsp;(the&nbsp;&quot;License&quot;);&nbsp;you&nbsp;may&nbsp;not</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="5"/>5</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;use&nbsp;this&nbsp;file&nbsp;except&nbsp;in&nbsp;compliance&nbsp;with&nbsp;the&nbsp;License.&nbsp;You&nbsp;may&nbsp;obtain&nbsp;a&nbsp;copy&nbsp;of</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="6"/>6</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;the&nbsp;License&nbsp;at</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="7"/>7</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="8"/>8</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;http://www.apache.org/licenses/LICENSE-2.0</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="9"/>9</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="10"/>10</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;Unless&nbsp;required&nbsp;by&nbsp;applicable&nbsp;law&nbsp;or&nbsp;agreed&nbsp;to&nbsp;in&nbsp;writing,&nbsp;software</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="11"/>11</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;distributed&nbsp;under&nbsp;the&nbsp;License&nbsp;is&nbsp;distributed&nbsp;on&nbsp;an&nbsp;&quot;AS&nbsp;IS&quot;&nbsp;BASIS,&nbsp;WITHOUT</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="12"/>12</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;WARRANTIES&nbsp;OR&nbsp;CONDITIONS&nbsp;OF&nbsp;ANY&nbsp;KIND,&nbsp;either&nbsp;express&nbsp;or&nbsp;implied.&nbsp;See&nbsp;the</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="13"/>13</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;License&nbsp;for&nbsp;the&nbsp;specific&nbsp;language&nbsp;governing&nbsp;permissions&nbsp;and&nbsp;limitations&nbsp;under</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="14"/>14</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*&nbsp;the&nbsp;License.</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="15"/>15</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;*/</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="16"/>16</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>package&nbsp;com.google.test.metric.report;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="17"/>17</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="18"/>18</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>import&nbsp;static&nbsp;java.lang.Math.ceil;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="19"/>19</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>import&nbsp;static&nbsp;java.lang.Math.max;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="20"/>20</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>import&nbsp;static&nbsp;java.lang.Math.min;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="21"/>21</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="22"/>22</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>public&nbsp;class&nbsp;Histogram&nbsp;{</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="23"/>23</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="24"/>24</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;private&nbsp;final&nbsp;int&nbsp;min;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="25"/>25</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;private&nbsp;final&nbsp;int&nbsp;binWidth;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="26"/>26</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;private&nbsp;final&nbsp;int[]&nbsp;bins;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="27"/>27</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;private&nbsp;int&nbsp;maxBin;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="28"/>28</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
      <tr>
        <td class="ln"><a name="29"/>&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'><tt>com.google.test.metric.report.Histogram(int,&nbsp;int,&nbsp;int)</tt><br>
          Total Cost: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct Cost: 0&nbsp;
        </td>
  </tr>
    <tr>
      <td class="ln"><a name="29"/>29</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;public&nbsp;Histogram(int&nbsp;min,&nbsp;int&nbsp;binWidth,&nbsp;int&nbsp;binCount)&nbsp;{</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="30"/>30</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;this.min&nbsp;=&nbsp;min;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="31"/>31</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;this.binWidth&nbsp;=&nbsp;binWidth;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="32"/>32</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;this.bins&nbsp;=&nbsp;new&nbsp;int[binCount];</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="33"/>33</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="34"/>34</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="35"/>35</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;public&nbsp;void&nbsp;value(int&nbsp;value)&nbsp;{</tt>&nbsp;</td>
    </tr>
      <tr>
        <td class="ln"><a name="36"/>&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'>Cost: 1 [CC: 1]&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'><tt>void&nbsp;value(int)</tt><br>
          Total Cost: 1 [CC: 1]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct Cost: 0&nbsp;
        </td>
  </tr>
    <tr>
      <td class="ln"><a name="36"/>36</td>
      <td nowrap class="score"><a href="http://code.google.com/p/testability-explorer/wiki/ComplexityCostExplanation">CC: 1</a>&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;maxBin&nbsp;=&nbsp;max(maxBin,&nbsp;++bins[Math.min(bins.length&nbsp;-1,&nbsp;bin(value))]);</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="37"/>37</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="38"/>38</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="39"/>39</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;private&nbsp;int&nbsp;bin(int&nbsp;value)&nbsp;{</tt>&nbsp;</td>
    </tr>
      <tr>
        <td class="ln"><a name="40"/>&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'>Cost: 1 [CC: 1]&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'><tt>int&nbsp;bin(int)</tt><br>
          Total Cost: 1 [CC: 1]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct Cost: 1 [CC: 1]&nbsp;
        </td>
  </tr>
    <tr>
      <td class="ln"><a name="40"/>40</td>
      <td nowrap class="score"><a href="http://code.google.com/p/testability-explorer/wiki/ComplexityCostExplanation">CC: 1</a>&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(binWidth&nbsp;==&nbsp;0)&nbsp;{</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="41"/>41</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="42"/>42</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="43"/>43</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;((value&nbsp;-&nbsp;min)&nbsp;/&nbsp;binWidth);</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="44"/>44</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="45"/>45</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="46"/>46</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;public&nbsp;int[]&nbsp;getBins()&nbsp;{</tt>&nbsp;</td>
    </tr>
      <tr>
        <td class="ln"><a name="47"/>&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'><tt>int[]&nbsp;getBins()</tt><br>
          Total Cost: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct Cost: 0&nbsp;
        </td>
  </tr>
    <tr>
      <td class="ln"><a name="47"/>47</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;bins;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="48"/>48</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="49"/>49</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="50"/>50</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;public&nbsp;int&nbsp;getMaxBin()&nbsp;{</tt>&nbsp;</td>
    </tr>
      <tr>
        <td class="ln"><a name="51"/>&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'><tt>int&nbsp;getMaxBin()</tt><br>
          Total Cost: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct Cost: 0&nbsp;
        </td>
  </tr>
    <tr>
      <td class="ln"><a name="51"/>51</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;maxBin;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="52"/>52</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="53"/>53</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="54"/>54</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;public&nbsp;void&nbsp;setMaxBin(int&nbsp;maxBin)&nbsp;{</tt>&nbsp;</td>
    </tr>
      <tr>
        <td class="ln"><a name="55"/>&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'>Cost: 0&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'><tt>void&nbsp;setMaxBin(int)</tt><br>
          Total Cost: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct Cost: 0&nbsp;
        </td>
  </tr>
    <tr>
      <td class="ln"><a name="55"/>55</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;this.maxBin&nbsp;=&nbsp;maxBin;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="56"/>56</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="57"/>57</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="58"/>58</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;public&nbsp;int[]&nbsp;getScaledBinRange(int&nbsp;from,&nbsp;int&nbsp;to,&nbsp;int&nbsp;maxScale)&nbsp;{</tt>&nbsp;</td>
    </tr>
      <tr>
        <td class="ln"><a name="59"/>&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'>Cost: 2 [CC: 2]&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'><tt>int[]&nbsp;getScaledBinRange(int,&nbsp;int,&nbsp;int)</tt><br>
          Total Cost: 2 [CC: 2]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct Cost: 1 [CC: 1]&nbsp;
        </td>
  </tr>
    <tr>
      <td class="ln"><a name="59"/>59</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;double&nbsp;scale&nbsp;=&nbsp;(double)&nbsp;maxScale&nbsp;/&nbsp;maxBin;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="60"/>60</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;int[]&nbsp;subBins&nbsp;=&nbsp;new&nbsp;int[bins.length];</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="61"/>61</td>
      <td nowrap class="score"><a href="http://code.google.com/p/testability-explorer/wiki/ComplexityCostExplanation">CC: 1</a>&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;toBin&nbsp;=&nbsp;min(bins.length,&nbsp;bin(to));</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="62"/>62</td>
      <td nowrap class="score"><a href="http://code.google.com/p/testability-explorer/wiki/ComplexityCostExplanation">CC: 1</a>&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(int&nbsp;i&nbsp;=&nbsp;max(0,&nbsp;bin(from));&nbsp;i&nbsp;&lt;&nbsp;toBin;&nbsp;i++)&nbsp;{</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="63"/>63</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;subBins[i]&nbsp;=&nbsp;(int)&nbsp;ceil((scale&nbsp;*&nbsp;bins[i]));</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="64"/>64</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="65"/>65</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;subBins;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="66"/>66</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="67"/>67</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="68"/>68</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;public&nbsp;String[]&nbsp;getBinLabels(int&nbsp;maxLabels)&nbsp;{</tt>&nbsp;</td>
    </tr>
      <tr>
        <td class="ln"><a name="69"/>&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'>Cost: 2 [CC: 2]&nbsp;</td>
        <td nowrap class="summary" style='background-color:#00FF00'><tt>java.lang.String[]&nbsp;getBinLabels(int)</tt><br>
          Total Cost: 2 [CC: 2]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct Cost: 2 [CC: 2]&nbsp;
        </td>
  </tr>
    <tr>
      <td class="ln"><a name="69"/>69</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;String[]&nbsp;labels&nbsp;=&nbsp;new&nbsp;String[bins.length];</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="70"/>70</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;everyN&nbsp;=&nbsp;(int)&nbsp;Math.ceil((float)&nbsp;bins.length&nbsp;/&nbsp;maxLabels);</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="71"/>71</td>
      <td nowrap class="score"><a href="http://code.google.com/p/testability-explorer/wiki/ComplexityCostExplanation">CC: 1</a>&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(int&nbsp;i&nbsp;=&nbsp;0;&nbsp;i&nbsp;&lt;&nbsp;bins.length;&nbsp;i++)&nbsp;{</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="72"/>72</td>
      <td nowrap class="score"><a href="http://code.google.com/p/testability-explorer/wiki/ComplexityCostExplanation">CC: 1</a>&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(i&nbsp;%&nbsp;everyN&nbsp;==&nbsp;0)&nbsp;{</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="73"/>73</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labels[i]&nbsp;=&nbsp;Integer.toString(i&nbsp;*&nbsp;binWidth&nbsp;+&nbsp;binWidth&nbsp;/&nbsp;2);</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="74"/>74</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="75"/>75</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labels[i]&nbsp;=&nbsp;&quot;&quot;;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="76"/>76</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="77"/>77</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="78"/>78</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;labels;</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="79"/>79</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>&nbsp;&nbsp;}</tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="80"/>80</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt></tt>&nbsp;</td>
    </tr>
    <tr>
      <td class="ln"><a name="81"/>81</td>
      <td nowrap class="score">&nbsp;</td>
      <td nowrap class="code"><tt>}</tt>&nbsp;</td>
    </tr>
</table>
<br><br>
<center>Report Generated with: <a href="http://code.google.com/p/testability-explorer/">Testability Explorer</a></center></body>
</html>